<%--
  Created by IntelliJ IDEA.
  User: luo
  Date: 2025/5/25
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="common/header.jsp">
  <jsp:param name="title" value="查找公告的结果"/>
</jsp:include>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:choose>
  <c:when test="${user.isAdmin}">
    <%@ include file="common/adminMenu.jsp" %>
  </c:when>
  <c:otherwise>
    <%@ include file="common/userMenu.jsp" %>
  </c:otherwise>
</c:choose>

<div class="container">
  ${message}
  <form>
    <label>公告id:</label>
    <input type="text" name="announcementId" value="${announcement.announcementId}" readonly>
    <br>
    <label>标题:</label>
    <input type="text" name="title" value="${announcement.title}" readonly>
    <br>
    <label>内容:</label>
    <textarea name="content" rows="10" cols="60" readonly>${announcement.content}</textarea>
    <br>
  </form>
</div>

<%@ include file="common/footer.jsp" %>
